package com.encyclopedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.encyclopedia.entity.Plant;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author all
 * @since 2024-04-21
 */
@Mapper
public interface PlantMapper extends BaseMapper<Plant> {

    List<Plant> getPlantByName(@Param("name") String name);

    List<Plant> selectByGenusId(@Param("genusId") Integer genusId);

    Plant getPlantById(@Param("plantId") Integer plantId);

    List<Plant> getPlantByGenusIda(@Param("ids") List<Integer> ids);


    List<Plant> getPlantByFamilyIda(@Param("ids") List<Integer> list);

    List<Plant> getPlantByMonth(@Param("month") String month);

    List<Plant> getLimitPlant(@Param("current") Integer current, @Param("page") Integer page);

    List<Plant> getAllByIdList(@Param("ids") List<Integer> ids);


}
